DiscShare
-----------------------------------------------------------------
Syntax
DiscShare.exe [Param1 [Value1 [Param2 Value2 ... ...]]] "Source"
-----------------------------------------------------------------
Parameter
-h > Show this Help

-f > Full structure: the entire folder structure is copied

-F > Full structure and all m2ts files: all what "-f" does and
     cut all m2ts to chunk files

-p > Playlist files: a comma separted array of mpls numbers
     a mpls number consists of 5 digits

-m > M2TS files: a comma separted array of m2ts numbers
     a m2ts number consists of 5 digits

-t > Target folder: folder will be created if not present

-r > Prepare disc restore: this mode split the m2ts files in 3 chunks
     a chunk from the beginning, middle and the end

-R > Restore disc: this restores a disc backup which was created
     with the "-r" parameter

".." > Source file: MUST be the last parameter! Path to source folder

@".." > Path to a parameter file: MUST be the first parameter!
        The parameter file should be a simple text file
        You can use any name and extension for the file name
        Only source folder parameter can be used additionally
-----------------------------------------------------------------
Parameter file
Each line is used as a parameter
If you don't set a source path in the parameter file,
the source path is read from the command-line.
You can use a root parameter file called "params.txt"
Exists this file in the root folder of DiscShare, it is used automatically.
If the "params.txt" is empty, it will be ignored.
-----------------------------------------------------------------
Command
You can send a command while DiscShare is running.
Command will be executed after pressing the ENTER key

"e" > User Exit: stops DiscShare
-----------------------------------------------------------------
Exit codes
DicShare sends at the end an exit code

0 - all OK
1 - no source folder
2 - no disc structure found
3 - no target folder (not found or could not created)
4 - no restore file found
7 - parameter file not found
8 - parameter file is empty (only if used with the cli parameter)
9 - wrong parameters
99 - internal Lazarus error
-1 - User Exit
-----------------------------------------------------------------
Examples
DiscShare: shrink disc
DiscShare.exe -t "Target\Path" "Source BD folder"
only important BD folders are copied, no m2ts chunks

DiscShare.exe -f -t "Target\Path" "Source BD folder"
all BD folders are copied, no m2ts chunks

DiscShare.exe -F -t "Target\Path" "Source BD folder"
all BD folders and m2ts chunks are copied

DiscShare.exe -f -m 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and 2 m2ts chunks

DiscShare.exe -f -m 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and 2 m2ts chunks

DiscShare.exe -f -p 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts chunks from the 2 mpls files

DiscShare.exe -f -p 00000,00002 -m 00001 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts chunks from the 2 mpls files
00001.m2ts is additionally used if not used in the mpls files

DiscShare.exe -r -f -p 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts files from the 2 mpls files
are prepared for later restoring.

DiscShare: restore disc
DiscShare.exe -R "Path\prepared disc folder"
this restores the file size of all m2ts files


